<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="../upload" method="post" enctype="multipart/form-data">
        <input type="file" name="file" accept="image/*">
        <br>
        <input type="submit" value="上传" class="btn btn-success">
    </form>
    [[${filename}]]
    <br>
    <img th:src="@{${filename}}" alt="图片">

</body>
</html>